#ifndef COMMONVIEW_H
#define COMMONVIEW_H

#include <QGraphicsView>
#include <QIcon>
#include <QBrush>
#include <QLabel>
#include <QGraphicsScene>
#include <QResizeEvent>
#include "qgun.h"
#include "qpixmapitem.h"
#include "qfish.h"
#include <QTimer>
#include <QPoint>
#include <QLine>
#include <QLineF>
#include "qbang.h"
#include <QMessageBox>

extern int score;
class Commonview:public QGraphicsView
{
public:
    Commonview();
    void resizeEvent(QResizeEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent *event);
private:
    QLabel *label;
    QGraphicsScene *scence;
    QGun *gun;
    QFish *fish1;
    QFish *fish11;
    QFish *fish12;
    QFish *fish13;
    //QFish *fish14;
    //QFish *fish15;

    QFish *fish2;
    QFish *fish21;
    //QFish *fish22;

    QFish *fish3;
    QFish *fish31;

    QFish *fish4;
    QFish *fish5;

    QFish *fish6;
    QFish *fish61;
    QFish *fish62;
    QFish *fish63;

    QTimer *timer;
};

#endif // COMMONVIEW_H
